[index]
FunctionKey Message
Syntax
For cards, fields:
on functionKey <keynumber> end functionKey
For dataSheets:
on functionKey <keynumber>[, <row>[, <col>]]
end funtionKey
Sent to the current card, fields, dataSheets
Description
The functionKey message indicates whether a function key, specified by the <keynumber>, is being pressed. The message first goes to the field or dataSheet, then to the card; if the card has no handler for it, the message travels through the Oracle Media Objects hierarchy. If it reaches Oracle Media Objects itself, Oracle Media Objects issues the functionKey command.
Notes
On the Macintosh, functionKey has built-in Undo, Cut, Copy, and Paste functions for <keynumber> values 1 through 4, respectively.
Examples
This example demonstrates how you can use the functionKey message in your stacks. Add the following handler to the current card:
on functionKey keynum if keynum is 1 then
Copy else
if keynum is 2 then Paste
end if end if
end functionKey
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.